package com.book.derecated.state;

import org.springframework.stereotype.Component;

/**
 * @param
 * @author oyz
 * @version 1.0.4
 * @description: 被观察者具体实现类
 * @date 2023/12/4 21:54
 */
@Component
public class DeprecatedPayOrder extends DeprecatedAbstractOrderState{


    @Override
    protected DeprecatedOrder payOrder(String orderId, DeprecatedOrderContext context) {
        super.notifyObserver(orderId, ORDER_WAIT_SEND);
        return null;
    }
}
